import React from 'react';
import { Text, View, TouchableHighlight } from 'react-native';

function ButtonG(props: any) {
	const { title = '测试', onPress } = props;
	return (
		<TouchableHighlight onPress={onPress} underlayColor="white">
			<View style={styles.button}>
				<Text style={styles.buttonText}>{title}</Text>
			</View>
		</TouchableHighlight>
	);
}
const styles = {
	button: {
		alignItems: 'center',
		backgroundColor: 'red',
		borderRadius: 4,
	},
	buttonText: {
		padding: 8,
		color: 'white',
		fontSize: 14,
	},
};
export default ButtonG;
